<!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>-->
<script src="<{$Think.const.JS_URL}>jquery.table2excel.js"></script>
<include file="Public:pagerForm"/>
<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__CONTROLLER__/quarterlyList" method="post">
	<div class="searchBar">		
            <table class="searchContent">
                <tr>
                    <td>
                        姓名：<input type="text" name="accept_user" value="<{$Think.post.accept_user}>"/>
                    </td>
                    <td>
                        审核年份：<input type="text" name="year"  value="<{$Think.post.year}>"/>
                    </td>
                    <td>
                        季度:<select name="quarter" style="width: 70px">
                            <option value="">请选择</option>
                            <option value="Q1" <if condition="$Think.post.quarter eq Q1">selected</if>>Q1</option>
                            <option value="Q2" <if condition="$Think.post.quarter eq Q2">selected</if>>Q2</option>
                            <option value="Q3" <if condition="$Think.post.quarter eq Q3">selected</if>>Q3</option>
                            <option value="Q4" <if condition="$Think.post.quarter eq Q4">selected</if>>Q4</option>
                            
                        </select>
                    </td>
                </tr>
            </table>
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
                </ul>
            </div>
	</div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar"> 
            <li><a class="icon" href="__CONTROLLER__/downexcel" rel="id[]" target="selectedTodo" targetType="navTab" title="实要导出这些记录吗?"><span>转为EXCEL</span></a></li>
            
        </ul>
    </div>
    <table class="table table2excel" width="100%" layoutH="138" id="ta">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="id[]" class="checkboxCtrl"></th>
                <th width="40"  align="center">序号</th>
                <th width="100" align="center">部门</th>
                <th width="100" align="center">姓名</th>
                <th width="100" align="center">id</th>
                <th width="100" align="center">英文名</th>
                <th width="80" align="center" >入职日期</th>
                <th width="40" align="center" >实际分数</th>
                <th width="80" align="center" >强制分数</th>
                <th width="80" align="center" >最终得分</th>
                <th width="80" align="center" >等级</th>
                <th width="80" align="center">考核系数</th>
                <th width="80" align="center">备注</th>
            </tr>
        </thead>
        <tbody>
            <foreach name='list' item="list">
                <tr target="l_id" rel="<{$list.id}>">
                    <td><input name="id[]" value="<{$list.id}>" type="checkbox"></td>
                    <td><{$key+1}></td>
                    <td><{$list.accept_id|get_User_sec}></td>
                    <td><{$list.accept_id|getUsername}></td>
                    <td><{$list.id}></td>
                    <td><{$list.accept_id|getUsername=1}></td>
                    <td><{$list.accept_id|getJionDate}></td>
                    <td><{$list['total_score']-$list['rewards']+$list['punishment']}></td>
                    <td><{$list['rewards']-$list['punishment']}></td>
                    <td><{$list.total_score}></td>
                    <td><{$list.final_score_level}></td>
                    <td><{$list.total_score|coefficient}></td>
                    <td>
                        <if condition="($list['rew_remark'] neq '') and ($list['pun_remark'] eq '')">
                            <{$list.rew_remark}> 
                        <elseif condition="($list['rew_remark'] eq '') and ($list['pun_remark'] neq '')">
                            <{$list.pun_remark}> 
                        <elseif condition="($list['rew_remark'] neq '') and ($list['pun_remark'] neq '')">
                            <{$list.rew_remark}>　　<{$list.pun_remark}>
                        </if>
                    </td>
                </tr>
            </foreach>
        </tbody>        
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共<{$totalCount}>条</span>          
        </div>
        <div class="pagination" targetType="navTab" totalCount="<{$totalCount}>" numPerPage="<{$numPerPage}>" pageNumShown="6"  currentPage="<{$currentPage}>"></div>
    </div>
</div><style type="text/css" media="screen">
    .imgs div{height:100px!important;}
</style>

<script type="text/javascript">  
    function aa() {
        $(".table2excel").table2excel({
          exclude: ".noExl",
          name: "Excel Document Name",
          filename: "myFileName"
        });
      }
</script>
